#!/usr/bin/env python
# -*- coding:utf-8 -*-
import json


def dumps(obj):
    return json.dumps(obj) # 将结果json化


if __name__ == '__main__':
    # import doctest
    #
    # doctest.testmod()
    a = (1,2,3)
    b = {'a':1,'b':2,'c':3}

    print dumps(a)
    print dumps(b)
